package com.ruoyi.personnelMatters.mapper;

import java.util.List;
import com.ruoyi.personnelMatters.domain.PersonAssessment;
import org.apache.ibatis.annotations.Param;

/**
 * 人事考核Mapper接口
 *
 * @author ruoyi
 * @date 2022-09-16
 */
public interface PersonAssessmentMapper
{
    /**
     * 查询人事考核
     *
     * @param personAssessmentId 人事考核主键
     * @return 人事考核
     */
    public PersonAssessment selectPersonAssessmentByPersonAssessmentId(Long personAssessmentId);

    /**
     * 查询人事考核列表
     *
     * @param personAssessment 人事考核
     * @return 人事考核集合
     */
    public List<PersonAssessment> selectPersonAssessmentList(PersonAssessment personAssessment);

    /**
     * 新增人事考核
     *
     * @param personAssessment 人事考核
     * @return 结果
     */
    public int insertPersonAssessment(PersonAssessment personAssessment);

    /**
     * 修改人事考核
     *
     * @param personAssessment 人事考核
     * @return 结果
     */
    public int updatePersonAssessment(PersonAssessment personAssessment);

    /**
     * 删除人事考核
     *
     * @param personAssessmentId 人事考核主键
     * @return 结果
     */
    public int deletePersonAssessmentByPersonAssessmentId(Long personAssessmentId);

    /**
     * 批量删除人事考核
     *
     * @param personAssessmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePersonAssessmentByPersonAssessmentIds(Long[] personAssessmentIds);

    /**
     * 查询个人考核详情
     */
    public PersonAssessment selectPersonAssessmentByPersonAssessmentIdAndUid(@Param("personAssessmentId")Long personAssessmentId, @Param("userId")Long userId);
}
